package com.ftg.elvis.service;

import com.ftg.elvis.mapper.AdminMenuMapper;
import com.ftg.elvis.pojo.Menu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminMenuService {

	@Autowired
	AdminMenuMapper adminMenuMapper;

	public List<Menu> showAll(String uid) {
		List<Menu> menuList = adminMenuMapper.showAll(uid);
		return menuList;
	}

    public String findId(String username) {
		return adminMenuMapper.findId(username);
    }
}
